package com.aaa.mrcai.mapper;

import com.aaa.mrcai.pojo.entity.GoodsCompany;
import com.aaa.mrcai.pojo.vo.GoodsCompanyVo;
import com.aaa.mrcai.query.GoodsCompanyQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Demo class
 *
 * @Author: Wang
 * @Date: Created in 20:05 2021/12/6
 */
public interface GoodsCompanyMapper {

    List<GoodsCompany> queryGoodsCompany(GoodsCompanyQuery query);

    Long queryGoodsCompanyTotalCount(GoodsCompanyQuery query);

    Long isGoodsCompanyExists(@Param("stype") String stype);

    int addGoodsCompany(GoodsCompanyVo goodsCompanyVo);

    GoodsCompanyVo getGoodsCompany(int id);

    int deleteGoodsCompany(int id);

    long isUpdateGoodsCompanyExists(GoodsCompanyVo goodsCompanyVo);

    int updateGoodsCompany(GoodsCompanyVo goodsCompanyVo);

}
